<?php
/**
 * author: Administrator
 * Createtime: 2015/9/2911:41
 * description: 
 */

use Illuminate\Database\Seeder;
use App\Posts;

class PostsTableSeeder extends Seeder
{
    public function run()
    {
        DB::table('posts')->delete();

        for ($i=0; $i < 10; $i++) {
            Posts::create([
                'title'   => 'Title '.$i,
                'content'    => 'test-content',
                'user_id'    => '1',
            ]);
        }
    }
}